<template>
  <div class="container">
    <Navbar />

    <main class="content">
      <routerView />
    </main>
  
    <footer>
      &copy; 2025 版权
    </footer>
  </div>
</template>

<script setup>
import Navbar from "../components/Navbar.vue"
</script>

<style scoped>
.container {
  background-color: rgb(238, 238, 238);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container main {
  flex-grow: 1;
  padding: 20px;
  width: 80%;
  margin: 0 auto;
}

.container footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px; 
  height: 5vh;
}

.container .content {
  width: 80%;
  padding: 10px;
  margin: 20px auto;
}

.container .content > div {
  width: 80%;
  min-height: 10px;
  margin: 0 auto;
  margin-top: 20px;
}
</style>
